package com.clinic.api.patient;

import com.clinic.framework.common.request.PatientQueryRequest;
import com.clinic.framework.common.response.QueryList;
import com.clinic.framework.common.response.ResponseResult;
import com.clinic.framework.common.response.ResponseValue;
import com.clinic.framework.domain.base.Patient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(value = "患者管理",description = "患者管理接口")
public interface PatientControllerApi {
    @ApiOperation("增加患者")
    @PostMapping("/add")
    public ResponseResult addPatient(@RequestBody Patient Patient);
    @ApiOperation("修改患者")
    @PostMapping("/edit")
    public ResponseResult editPatient(@RequestBody Patient Patient);
    @ApiOperation("根据id删除患者")
    @DeleteMapping("/get/{id}")
    public ResponseResult delPatient(String id);
    @ApiOperation("患者列表")
    @GetMapping("/list/{page}/{size}")
    public QueryList<Patient> findPatientList(@PathVariable("page") String page, @PathVariable("size") String size, PatientQueryRequest dqr);
    @ApiOperation("根据id查询患者")
    @GetMapping("/get/{id}")
    public ResponseValue<Patient> findPatientById(@PathVariable("id") String id);
}
